package com.ganzalang.gmall.promotion.service.rule.qualify.impl;

import com.ganzalang.gmall.promotion.dto.QualifyResult;
import com.ganzalang.gmall.promotion.dto.RuleContext;
import com.ganzalang.gmall.promotion.service.rule.qualify.QualifyStrategy;

/**
 * @author Ganzalang
 * @description 首单资格校验
 * @Date 2022/4/4 11:11
 */
public class FirstQualifyStrategy implements QualifyStrategy {
    /**
     * 是否有资格
     *
     * @param context 规则上下文
     * @return
     */
    @Override
    public QualifyResult qualify(RuleContext context) {
        QualifyResult result = new QualifyResult();

        if (1 == 1) {
            result.setQualify(true);
        }
        return result;
    }
}
